<div>
  <form nz-form [formGroup]="validateForm" ngxsForm="plugin.modal">
    <nz-form-item>
      <nz-form-label [nzSpan]="7" nzRequired>路径</nz-form-label>
      <nz-form-control [nzSpan]="12" nzHasFeedback nzValidatingTip="校验中..." [nzErrorTip]="pathErrorTpl">
        <input nz-input formControlName="path" placeholder="请输入路径"/>
        <ng-template #pathErrorTpl let-control>
          <ng-container *ngIf="control.hasError('required')">请输入路径!</ng-container>
          <ng-container *ngIf="control.hasError('duplicated')">路径重复!</ng-container>
        </ng-template>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="7">描述</nz-form-label>
      <nz-form-control [nzSpan]="12" nzHasFeedback>
        <nz-textarea-count [nzMaxCharacterCount]="2000">
          <textarea formControlName="desc" nz-input rows="2" placeholder="请输入描述"></textarea>
        </nz-textarea-count>
      </nz-form-control>
    </nz-form-item>
  </form>
</div>
